package com.ny.aa.impl;

import com.ny.entity.Product;
import com.ny.aa.ProductService;
import com.ny.entity.Student;
import com.ny.demo525.ProductDao;
import com.ny.demo525.impl.ProductDaoImpl;

import java.sql.SQLException;
import java.util.List;

public class ProductServiceImpl implements ProductService {
private ProductDao productDao=new ProductDaoImpl();
public ProductServiceImpl() throws ClassNotFoundException, SQLException {

}
    public Student login(String studentName, String studentPassword) {

        return null;
    }
    @Override
    public List<Product> findAllProduct() throws SQLException {
        return productDao.findAllProduct();
    }
}
